<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page import="java.util.List" %>
<%@ page import="com.timeDeal.bean.*" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%--
  Created by IntelliJ IDEA.
  User: 叼爸爸
  Date: 2016/9/12
  Time: 19:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../inc/mytop.jsp"%>
<%
    PageList pagelist =(PageList) request.getAttribute("pageList") ;
    //String id = (String) request.getAttribute("id") ;
%>
<div class="row">
    <div class="col-xs-12 hehe">
        <table class="table">
            <tr  style="margin-right: 200px">
                       <tr  style="margin-right: 200px">
                                  <th><h2>您要查看的版本信息如下</h2></th>
                        </tr>
            </tr>
            <tr  style="margin-right: 200px">
                <th width="50%">描述</th>
                <th style="float:center" >版本</th>
                <th  >操作</th>

            </tr>
            <%
                if(pagelist!=null){
                    List<Object> list = pagelist.getList();
                    for(int i=0;i<list.size();i++){
                        JinduBean jinduBean =(JinduBean)list.get(i);
                        %>
            <tr  style="margin-right: 200px">
                <td>
                    <%=jinduBean.getMiaoshu()%>
                <td style="float:center">
                   版本<%=jinduBean.getBanben()%>
                </td>
                <td style="float:left">

                   <button id="idceshi" >下载附件</button>
                     <%if( StringUtils.equals(jinduBean.getShenqingtiqianjieshu(),"1")){ %>
                             <a href="<%=ctxpath%>/user/tiqianjieshu?id=<%=jinduBean.getXuqiufabuid()%>">同意提前结束</a>
                          <%  }%>
                </td>
            </tr>
            <% }}%>
        </table>
        <%
            for(int i=0;i<pagelist.getTotalpage();i++){
        %>
        <a    href="<%=ctxpath%>/user/chakanjindugg.jsp?currentpage=<%=i+1%>&id=<%=id%>"  class=" btn"  ><%=i+1%></a>
        <%}%>
    </div>
</div>
<input id="currentpage" name="currentpage" value="${pageList.currentpage}"></input>


<%@ include file="../inc/bottom.jsp"%>
<script>
    function download(){
        alert("111111");
        var fileObj=document.getElementById("jjj");
        var src = window.URL.createObjectURL(fileObj.files[0]);
        alert("111111");
        window.location.href=src;
    }

    </script>